package kr.co.boogui.actions.member;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boogui.actions.ActionHandler;
import kr.co.boogui.dao.MemberDAO;
import kr.co.boogui.model.MemberVO;

public class MemberModifyAction implements ActionHandler {
	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		String viewPage = "f|/WEB-INF/jsp/tiles/index.jsp";
		MemberVO m = new MemberVO();
		m.setMno(req.getParameter("mno"));
		req.setAttribute("action", "../member/member_modify.jsp");
		req.setAttribute("memberRead", MemberDAO.readMember(m));
		return viewPage;
	}

}
